/**
 * 项目入口文件
 */

import Vue from 'vue'
import VueRouter from 'vue-router';

import App from './app'
import routes from './router/index'
import RouterEvent from './router/event'

Vue.use(VueRouter);

//history模式比较像正常的url，hash模式带有#号
const router = new VueRouter({
    routes: routes,
    mode: 'hash'
});

RouterEvent(router);

new Vue({
    el: '#bim5d',
    router,
    render: h => h(App)
})